<template>
  <div></div>
</template>
<script>
export default {
  methods: {
    open() {
      this.$alert("确实退出吗", "退出提示", {
        confirmButtonText: "确定",
        callback: action => {
          localStorage.clear();
          window.location.reload();

          this.$message({
            type: "info",
            message: `action: ${action}`
          });
        }
      });
    }
  },
  mounted() {
    this.open();
  }
};
</script>
<style scoped>
</style>